﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Web.Mvc;

namespace Meraz.Core.Model
{
    public class Alias
    {
        public Alias() { Posters = new List<Poster>(); }
        public Alias(string name) { this.Name = name; Posters = new List<Poster>(); }
        public string BlogName { get; set; }
        public int ID { get; set; }

        [DisplayName("Name")]
        public string Name { get; set; }
        public string Status { 
            get { return this.StatusType.ToString(); } 
            set { this.StatusType = (StatusType) Enum.Parse(typeof(StatusType), value);} 
        }
        public StatusType StatusType { get; set; }
        public Nullable<int> PersonID { get; set; }
        public virtual Person Person { get; set; }
        public List<Poster> Posters { get; set; }
    }
}
